package priv.mill.server.impl;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import priv.mill.dao.mapper.AuserMapper;
import priv.mill.entry.Auser;
import priv.mill.server.AuserService;

@Component
public class AuserServiceImpl implements AuserService{

	private static final Logger logger = Logger
			.getLogger(AuserServiceImpl.class);

	@Autowired
	private AuserMapper AuserMapper;
	
	@Override
	public Auser getAuserById(Integer AuserId) {
		return AuserMapper.getAuserById(AuserId);
	}

	@Override
	public Auser getAuserByEntry(Auser Auser) {
		return AuserMapper.getAuserByEntry(Auser);
	}

	@Override
	public List<Auser> getAusersByPage(Auser Auser) {
		return AuserMapper.getAusersByPage(Auser);
	}

	@Override
	public int updateAuser(Auser Auser) {
		return AuserMapper.updateAuser(Auser);
	}

	@Override
	public int insertAuser(Auser Auser) {
		return AuserMapper.insertAuser(Auser);
	}

	@Override
	public int deleteAuser(Integer AuserId) {
		return AuserMapper.deleteAuser(AuserId);
	}
}
